package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.PtTurntablePrizeEntity;
import com.dragon.modules.yuegou.enums.member.PtTurntablePrizePrizeType;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 大转盘奖品模型类
 *
 * @author pbuilder generated
 * @version 2.0
 * @date 2021-12-21 15:58:30
 * @company sgy
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class PtTurntablePrize extends PtTurntablePrizeEntity {

    @ApiModelProperty("提示信息")
    private String tipsContent;

    /** 剩余数量 */
	@ApiModelProperty("剩余数量")
    private Integer currentCount;
	
	@ApiModelProperty("中奖数量")
    private Integer gainCount;

    @ApiModelProperty("变更前数量")
    private Integer beginChangeCount;

    @ApiModelProperty("变更数量")
	private Integer changeCount;

    @ApiModelProperty("变更后数量")
    private Integer endChangeCount;

    private static final long serialVersionUID = 1L;

    public String getTipsContent() {
        return tipsContent;
    }

    public void setTipsContent(String tipsContent) {
        this.tipsContent = tipsContent;
    }
    
    public Integer getCurrentCount() {
		return currentCount;
	}

	public void setCurrentCount(Integer currentCount) {
		this.currentCount = currentCount;
	}

    public Integer getBeginChangeCount() {
        return beginChangeCount;
    }

    public void setBeginChangeCount(Integer beginChangeCount) {
        this.beginChangeCount = beginChangeCount;
    }

    public Integer getChangeCount() {
        return changeCount;
    }

    public void setChangeCount(Integer changeCount) {
        this.changeCount = changeCount;
    }

    public Integer getEndChangeCount() {
        return endChangeCount;
    }

    public void setEndChangeCount(Integer endChangeCount) {
        this.endChangeCount = endChangeCount;
    }

	public Integer getGainCount() {
		return gainCount;
	}

	public void setGainCount(Integer gainCount) {
		this.gainCount = gainCount;
	}

	/**
     * 构造一个空大转盘奖品模型对象
     */
    public PtTurntablePrize() {
        super();
    }

    /**
     * 依据实体对象的信息构造一个大转盘奖品模型对象
     *
     * @param entity 实体对象
     */
    public PtTurntablePrize(PtTurntablePrizeEntity entity) {
        super(entity);
    }

    /**
     * 依据其它对象的信息构造一个大转盘奖品模型对象
     *
     * @param other 其它对象
     */
    public PtTurntablePrize(PtTurntablePrize other) {
        super(other);
    }


    @Override
    public String getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     * @return 当前对象
     */
    public PtTurntablePrize id(String id) {
        this.id = id;
        return this;
    }

    @Override
    public Boolean getPrizeFlag() {
        return prizeFlag;
    }

    /**
     * 设置是否是中奖配置
     *
     * @param prizeFlag 是否是中奖配置
     * @return 当前对象
     */
    public PtTurntablePrize prizeFlag(Boolean prizeFlag) {
        this.prizeFlag = prizeFlag;
        return this;
    }

    @Override
    public String getPointTurntableId() {
        return pointTurntableId;
    }

    /**
     * 设置大转盘ID
     *
     * @param pointTurntableId 大转盘ID
     * @return 当前对象
     */
    public PtTurntablePrize pointTurntableId(String pointTurntableId) {
        this.pointTurntableId = pointTurntableId;
        return this;
    }

    @Override
    public PtTurntablePrizePrizeType getPrizeType() {
        return prizeType;
    }

    /**
     * 设置[枚举]奖品类型：0-实物产品-G1、1-虚拟产品-G2
     *
     * @param prizeType [枚举]奖品类型：0-实物产品-G1、1-虚拟产品-G2
     * @return 当前对象
     */
    public PtTurntablePrize prizeType(PtTurntablePrizePrizeType prizeType) {
        this.prizeType = prizeType;
        return this;
    }

    @Override
    public String getPrizeTitle() {
        return prizeTitle;
    }

    /**
     * 设置奖品标题
     *
     * @param prizeTitle 奖品标题
     * @return 当前对象
     */
    public PtTurntablePrize prizeTitle(String prizeTitle) {
        this.prizeTitle = prizeTitle;
        return this;
    }

    @Override
    public String getGoodsId() {
        return goodsId;
    }

    /**
     * 设置商品id
     *
     * @param goodsId 商品id
     * @return 当前对象
     */
    public PtTurntablePrize goodsId(String goodsId) {
        this.goodsId = goodsId;
        return this;
    }

    @Override
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置商品名称
     *
     * @param goodsName 商品名称
     * @return 当前对象
     */
    public PtTurntablePrize goodsName(String goodsName) {
        this.goodsName = goodsName;
        return this;
    }

    @Override
    public String getGoodsImg() {
        return goodsImg;
    }

    /**
     * 设置商品图案
     *
     * @param goodsImg 商品图案
     * @return 当前对象
     */
    public PtTurntablePrize goodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
        return this;
    }

    @Override
    public Boolean getGoodsInfinite() {
        return goodsInfinite;
    }

    /**
     * 设置是否无限大
     *
     * @param goodsInfinite 是否无限大
     * @return 当前对象
     */
    public PtTurntablePrize goodsInfinite(Boolean goodsInfinite) {
        this.goodsInfinite = goodsInfinite;
        return this;
    }

    @Override
    public Integer getGoodsCount() {
        return goodsCount;
    }

    /**
     * 设置奖品数量
     *
     * @param goodsCount 奖品数量
     * @return 当前对象
     */
    public PtTurntablePrize goodsCount(Integer goodsCount) {
        this.goodsCount = goodsCount;
        return this;
    }

    @Override
    public Integer getGoodsProbability() {
        return goodsProbability;
    }

    /**
     * 设置中奖概率
     *
     * @param goodsProbability 中奖概率
     * @return 当前对象
     */
    public PtTurntablePrize goodsProbability(Integer goodsProbability) {
        this.goodsProbability = goodsProbability;
        return this;
    }

    @Override
    public Integer getGoodsSort() {
        return goodsSort;
    }

    /**
     * 设置商品序号
     *
     * @param goodsSort 商品序号
     * @return 当前对象
     */
    public PtTurntablePrize goodsSort(Integer goodsSort) {
        this.goodsSort = goodsSort;
        return this;
    }

    @Override
    public Long getPointCount() {
        return pointCount;
    }

    /**
     * 设置赠送积分数量
     *
     * @param pointCount 赠送积分数量
     * @return 当前对象
     */
    public PtTurntablePrize pointCount(Long pointCount) {
        this.pointCount = pointCount;
        return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置删除标志，0未删除，1删除
	 * 
	 * @param del 删除标志，0未删除，1删除
	 * @return 当前对象
	 */
    public PtTurntablePrize del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置删除人
	 * 
	 * @param delBy 删除人
	 * @return 当前对象
	 */
    public PtTurntablePrize delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置删除时间
	 * 
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
    public PtTurntablePrize delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
